#region License Revision: 0 Last Revised: 6/18/2008 11:00 AM
/******************************************************************************
Copyright (c) Microsoft Corporation.  All rights reserved.


This file is licensed under the Microsoft Public License (Ms-PL). A copy of the Ms-PL should accompany this file. 
If it does not, you can obtain a copy from: 

http://www.microsoft.com/resources/sharedsource/licensingbasics/publiclicense.mspx
******************************************************************************/
#endregion // License
using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace VIEWS
{
    /// <summary>
    /// Provides data for the <see cref="VEMap.Import3DModelCompleted">Import3DModelCompleted</see> event.
    /// </summary>
    public class Import3DModelCompletedEventArgs : EventArgs
    {
        private VEPushpin pin;
        private VEModelStatusCode statusCode;

        /// <summary>
        /// Initializes a new <see cref="Import3DModelCompletedEventArgs"/> instance.
        /// </summary>
        /// <param name="pin">
        /// The pushpin corresponding to the 3D model.
        /// </param>
        /// <param name="statusCode">
        /// A <see cref="VEModelStatusCode"/> value indicating the status of the 3D model import.
        /// </param>
        public Import3DModelCompletedEventArgs(VEPushpin pin, VEModelStatusCode statusCode)
        {
            this.pin = pin;
            this.statusCode = statusCode;
        }

        /// <summary>
        /// Gets the pushpin corresponding to the 3D model.
        /// </summary>
        /// <value>
        /// The pushpin corresponding to the 3D model.
        /// </value>
        public VEPushpin Pin
        {
            get
            {
                return pin;
            }
        }

        /// <summary>
        /// Gets a <see cref="VEModelStatusCode"/> value indicating the status of the 3D model import.
        /// </summary>
        /// <value>
        /// A <see cref="VEModelStatusCode"/> value indicating the status of the 3D model import.
        /// </value>
        /// <remarks>
        /// Note, status only indicates if the model data was successfully imported, it does not indicate whether or not the model rendered properly.
        /// </remarks>
        public VEModelStatusCode Status
        {
            get
            {
                return statusCode;
            }
        }
    }
}
